import { Type } from 'class-transformer';
import { IsInt, Min } from 'class-validator';

// 分页查询
export class PaginationQuery {
  @IsInt()
  @Min(1)
  @Type(() => Number)
  page: number = 1; // 默认值为 1

  @IsInt()
  @Min(1)
  @Type(() => Number)
  limit: number = 10; // 默认值为 10
}
